import os

from django.core.handlers.wsgi import WSGIHandler
from django.core.wsgi import get_wsgi_application

# 根据环境变量设置不同的设置文件
if os.getenv('DJANGO_ENV') == 'production':
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoProject.settings.production')
else:
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoProject.settings.development')

application: WSGIHandler = get_wsgi_application()
import os

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoProject.settings')

